package org.answer.service.impl;


import org.answer.dao.MedicalUploadDao;
import org.answer.service.MedicalUploadService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service(interfaceClass = MedicalUploadService.class)
@Transactional
public class MedicalUploadServiceImpl implements MedicalUploadService {

    @Autowired
    private MedicalUploadDao medicalUploadDao;


    @Override
    public void add(String fileNumber, String healthURL, Integer member_id) {
        medicalUploadDao.add(fileNumber,healthURL,member_id);
    }

    @Override
    public List<String> downloadHealthFrom(Integer id) {
        List<String> list = medicalUploadDao.downloadHealthFrom(id);
        return list;
    }

    @Override
    public void delete(Integer id) {
        medicalUploadDao.delete(id);
    }



}
